using System;

namespace Jandaya.Framework
{
	public enum ObjectState
	{
		/// <summary>
		/// The object was created outside of the repository.
		/// </summary>
		Created,
		
		
		/// <summary>
		/// The object was loaded from repository or saved to it.
		/// Nothing needs be done on the persistence layer.
		/// </summary>
		Clean,
		
		
		/// <summary>
		/// The object was loaded but it's value has changed
		/// </summary>
		Modified,
		
		
		/// <summary>
		/// The object was marked to deletion on persistence layer
		/// </summary>
		Delete,
		
		
		/// <summary>
		/// The object does was deleted
		/// </summary>
		Deleted
	}
}

